<template>
	<view>
		<view class="bg-white padding">
			<view class="cu-steps">
				<view class="cu-item" :class="index>num?'':'text-blue'" v-for="(item,index) in numList" :key="index">
					<text class="num" :class="index==2?'err':''" :data-index="index + 1"></text> {{item.name}}
				</view>
			</view>
		</view>
		<!-- 订单认领 -->
		<view v-if="sta == 1">
			<view class="box">
				<view class="title">
					<view class="line"></view>
					<view>订单编号：<text class="font1">SGJY20191201-010</text></view>
				</view>
				<view class="main">
					<view>
						<view>用户姓名：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>联系电话：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>车牌号码：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>车辆型号：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>受理4s店：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>售后顾问：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>救援人员：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>救援年卡：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>救援次数：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>救援地址：</view>
						<view>xxx</view>
					</view>
					<view>
						<view>客服备注：</view>
						<view>xxx</view>
					</view>
				</view>
			</view>
			<view class="btn1">认领，导航前往</view>
			<view class="btn1" style="background: #FA2E51;">认领，不到场说明</view>
		</view>
		<!-- 到场确认 -->
		<view v-if="sta == 2">
			<map style="width: 100%; height: calc(100vh - 550rpx);" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
			<view class="dc_foot">
				<view class="top">
					<image src="../../static/4.png" mode=""></image>
				</view>
				<view class="time">您剩余29：59分钟必须到达救援地点</view>
				<view class="foot_btn">
					<view>添加车主</view>
					<view>联系车主</view>
					<view>联系客服</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sta:2,
				numList: [{
					name: '订单确认'
				}, {
					name: '到场确认'
				}, {
					name: '维修确认'
				}, {
					name: '进站确认'
				}, {
					name: '救援结束'
				},],
				num: 0,
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.time{
		text-align: center;
		color: rgba(16, 16, 16, 1);
		font-size: 34rpx;
		font-family: PingFangSC-bold;
		margin-bottom: 50rpx;
	}
	.foot_btn>view{
		width: 28%;
		height: 50rpx;
		border-radius: 10rpx;
		text-align: center;
		border: 2rpx solid rgba(172, 172, 172, 1);
		color: rgba(34, 27, 28, 1);
		font-size: 28rpx;
		font-family: PingFangSC-regular;
	}
	.foot_btn{
		display: flex;
		justify-content: space-around;
		align-items: center;
	}
	.top>image{
		width: 80rpx;
		height: 100%;
	}
	.top{
		height: 80rpx;
		/* border: 1px solid red; */
		text-align: center;
	}
	.dc_foot{
		height: 250rpx;
		/* border: 1px solid red; */
	}
	.main>view :nth-child(2){
		color: rgba(172, 172, 172, 1);
		font-size: 24rpx;
		font-family: Arial;
	}
	.main>view :nth-child(1){
		width: 200rpx;
	}
	.main>view{
		color: rgba(34, 29, 26, 1);
		font-size: 24rpx;
		font-family: Arial;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		margin-bottom: 40rpx;
	}
	.main{
		margin-top: 40rpx;
	}
	.btn1{
		width: calc(100% - 120rpx);
		height: 80rpx;
		border-radius: 12rpx;
		background-color: rgba(2, 128, 255, 1);
		box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(2, 128, 255, 1);
		border: 2rpx solid rgba(255, 255, 255, 0);
		display: flex;
		justify-content: center;
		align-items: center;
		color: rgba(245, 245, 245, 1);
		font-size: 32rpx;
		font-family: Arial;
		margin: 40rpx auto;
	}
	.box{
		padding: 0 42rpx;
		box-sizing: border-box;
	}
	.font1{
		color: rgba(55, 55, 55, 1);
		font-size: 28rpx;
		font-family: Arial;
	}
	.line{
		width: 0rpx;
		height: 30rpx;
		border: 3rpx solid rgba(2, 128, 255, 1);
		margin-right: 24rpx;
	}
	.title{
		color: rgba(102, 102, 102, 1);
		font-size: 32rpx;
		font-family: Arial;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	page{
		background: #FFFFFF;
	}
</style>
